import java.util.Scanner;
import java.util.Random;
public class Tesy {

    public static void main4(String[] args){
        Random random=new Random();
        int Guess=random.nextInt(100);
        Scanner sc=new Scanner(System.in);
        while(true){
            System.out.println("请输入要输入的数字：");
            int num=sc.nextInt();
            if(num<Guess){
                System.out.println("猜小了");
            }
            else if(num>Guess){
                System.out.println("猜大了");
            }
            else{
                System.out.println("猜对了");
                break;
            }
        }
        sc.close();
    }
    public static void main3(String[] args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        while(a>0){
            System.out.print(a%10+" ");
            a/=10;
        }
    }
    public static void main2(String[] args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        for(int i=31;i>=0;i-=2){
        int b=(a>>i)&1;
        System.out.print(b );
        }
        System.out.println();
        for(int i=30;i>=0;i-=2){
            int b=(a>>i)&1;
            System.out.print(b );
        }
    }
   public static void main1(String[] args){
       Scanner sc=new Scanner(System.in);
       int a=sc.nextInt();
       int count=0;
       while(a!=0){
           if((a&1)==1){
               count++;
           }
           a=a>>>1;
       }
       System.out.println(count);
   }
}
